package com;

import com.fz.Test.Studentdao;
import org.junit.Test;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by xiao zeng on 2017/7/5.
 */
public class StudentDome {
   protected BeanFactory factory;

   @Test
   public void sh(){
       this.factory = new ClassPathXmlApplicationContext("beans.xml");
       Studentdao h = this.factory.getBean("studentdao",Studentdao.class);
       h.show();
       h.save();
   }
}
